package thread.pool;
//How to perform multiple tasks by multiple threads (multitasking in multithreading)?
	//---->If you have to perform multiple tasks by multiple threads,have multiple run() methods
class Task1 extends Thread{
	public void run(){
		System.out.println("Task First...");
	}
}
class Task2 extends Thread{
	public void run(){
		System.out.println("Task second...");
	}
}
class Task3 extends Thread{
	public void run(){
		System.out.println("Task third...");
	}
}
public class MultiTasksMultiThread {
	public static void main(String[] args) {
		Task1 t1 = new Task1();
		Task2 t2 = new Task2();
		Task3 t3 = new Task3();
		 t3.start();
		 t1.start();
		 t2.start();
	}

	
}
